#include <iostream>
#include <math.h>
using namespace std;

int main(){
    int a, b;
    while (cin >> a >> b)
    {
        printf("%.3f",sqrt(a*a+b*b));
    }
    
}